$fontSize_20: 1.1vw;
$fontSize_18: 1vw;
$fontSize_16: 0.9vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.2vw;
$fontSize_36: 1.8vw;
$f: 19.2;

.header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: all 600ms;
  padding: 15px 0;

  .box {
    width: 92vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .logo {
      position: relative;
      img {
        width: 200/$f+vw;
        height: 48/$f+vw;
      }
      img:nth-child(2){
        position: absolute;
        left: 0;
        top:0;
        opacity: 0;
      }
    }

    .r {
      display: flex;
      align-items: center;

      .links {
        display: flex;

        a {
          font-size: $fontSize_18;
          color: white;
          transition: all 600ms;
          margin-left: 4vw;
          font-weight: 600;

          &:hover {
            color: #E01C1C;
          }
        }

        .active {
          color: #E01C1C;
        }
      }

      .search{
        margin: 0 22/$f+vw 0 38/$f+vw;
      }
      .shop {
        margin: 0 20/$f+vw 0 0;

        img {
          transition: all 600ms;
        }
      }

      .lan {
        position: relative;

        svg {
          path {
            stroke: #fff;
            transition: all 600ms;
          }
        }

        .chose {
          position: absolute;
          left: 10%;
          top: 50%;
          transform: translateY(-50%);
          display: flex;
          align-items: center;
          font-size: 14/$f+vw;
          color: white;
          cursor: pointer;
          transition: all 600ms;
          font-weight: 600;
          p {
            margin-right: 5px;
          }

          img {
            transition: all 600ms;
          }
        }

        a {
          position: absolute;
          top: 100%;
          left: 20px;
          display: none;
          width: 80px;
          padding: 12px 0 9px 0px;
          border: 1px solid #fff;
          background-color: #fff;
          font-size: 14px;
          line-height: 12px;
          text-align: center;
          color: #0f0f0f;
          font-weight: bold;

          &::before {
            position: absolute;
            top: 0;
            left: 45%;
            content: "";
            display: block;
            width: 0px;
            height: 0px;
            margin-top: -6px;
            margin-left: -3px;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 6px solid #fff;
          }
        }
      }
    }
  }
}

.hasBg,.hasBg2 {
  background: #FFF;
  box-shadow: 0px 4px 4px 2px rgba(0, 0, 0, 0.06);
  .box{
    .logo{
      img:nth-child(1){
        opacity: 0;
      }
      img:nth-child(2){
        opacity: 1;
      }
    }
    .r{
      .links{
        a{
          color: #111;
        }
      }
      .shop{
        img{
          filter: invert(100%);
        }
      }
      .lan{
        svg{
          path{
            stroke: #000;
          }
        }
        .chose{
          p{
            color:#000
          }
          img{
            filter: invert(100%);
          }
        }
      }
    }
  }
}


.pheader {
  display: none;
  position: fixed;
  top: 0;
  height: 60px;
  width: 100%;
  left: 0;
  z-index: 1002;
  background: #FFF;
  box-shadow: 0px 3px 12px 0px rgba(34, 34, 34, 0.12);

  .menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;


    a {
      margin-left: 20px;
      transform: translateY(2px);

      img {
        width: 140px;
        object-fit: contain;
      }
    }

    .navbox {
      margin-right: 20px;

      .line {
        width: 30px;
        height: 1px;
        background-color: #000;
        margin: 8px 0;
        -webkit-transition: all .6s;
        transition: all .6s;
      }
    }

    .activeBox {
      .line:nth-child(1) {
        transform: rotate(45deg) translateY(12px);
      }

      .line:nth-child(2) {
        transform: translateX(30px);
        opacity: 0;
      }

      .line:nth-child(3) {
        transform: rotate(-45deg) translateY(-12px);
      }
    }
  }
}

.menuList {
  position: fixed;
  left: 0;
  top: 59px;
  width: 100%;
  z-index: 1001;
  background: white;
  display: none;
  height: calc(100vh - 59px);

  .lan {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    .shop{
      img{
        filter: invert(100%);
        transform: translateY(-2px);
      }
    }
    a {
      color: #646464;
      margin-left: 20px;
    }

    .active {
      font-weight: bolder;
      color: #000000;
    }
  }

  .item {
    //background: rgba(255,255,255,.8);
    padding: 1rem;
    background-color: #ededed;
    border-bottom: 1px solid #dadada;

    a {
      color: #000;
      display: block;
      position: relative;
      text-transform: uppercase;

      img {
        position: absolute;
        right: 0;
        width: 20px;
        transition: all 600ms;
        top: 5px;
      }

      .icon2 {
        position: static;
        width: auto;
        margin-right: 10px;
      }

      .rotate {
        transform: rotate(90deg);
      }
    }

    .tb {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;

      a {
        width: 100%;
        display: block;
      }

      img {
        width: 40px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        transition: all 600ms;
      }

      .rotate {
        transform: translateY(-50%) rotate(90deg);
      }
    }

    .types_top {
      display: none;

      a {
        font-size: 14px;
        margin-top: 15px;
      }
    }
  }
}

.activeList {
  transform: translateY(0);
}


.foot {
  background: #fff url(../images/map.png) no-repeat;
  background-size: contain;
  background-position: center center;
  position: relative;
  z-index: 5;

  .dom1 {
    width: 80vw;
    margin: 0 auto;
    padding: 3vw 0 2vw 0;
    border-bottom: 1px solid #E8E8E8;
    display: flex;
    justify-content: space-between;
    position: relative;

    .l {
      width: 20vw;
      .logo{
        img{
          width: 97/$f+vw;
        }
      }
      .icons {
        display: flex;
        margin: 10px 0 20px 0;

        a {
          margin-right: 1.5vw;
        }
      }

      .phone,
      .address {
        color: #000;
        font-size: $fontSize_16;
        line-height: 1.6;
      }

      .address {
        margin-top: 5px;
      }
    }

    .links {
      a {
        display: block;
        color: #000;
        font-size: $fontSize_16;
        margin-bottom: 1vw;
        transition: all 600ms;

        &:hover {
          color: #E01C1C;
        }
      }
    }

    .last {
      margin-right: 15vw;
    }

    .top {
      position: absolute;
      right: 0;
      bottom: 2vw;
      width: 60/$f+vw;
      height: 60/$f+vw;
      background-color: #E01C1C;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: $fontSize_18;
      cursor: pointer;
    }
  }

  .dom2 {
    width: 80vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 1vw 0;

    p,
    a {
      color: #808080;
      font-size: $fontSize_16;
    }

    a {
      margin-left: 2vw;
      transition: all 600ms;

      &:hover {
        color: #E01C1C;
      }
    }
  }
}


@media screen and (max-width: 1024px) {
  .header {
    display: none;
  }

  .pheader {
    display: flex;
  }

  .foot{
    .dom1{
      width: 90%;
      flex-direction: column;
      padding: 20px 0;
      .top{
        width: 50px;
        height: 50px;
        font-size: 14px;
        bottom: auto;
        top:50px;
      }
      .links{
        display: none;
      }
      .l{
        width: 100%;
        .logo{
          img{
            width: 60px;
          }
        }
        .icons{
          width: 60%;
          justify-content: space-between;
        }
        .phone,.address{
          font-size: 14px;
        }
      }
    }
    .dom2{
      width: 90%;
      padding: 10px 0;
      flex-direction: column;
      align-items: flex-start;
      p,a{
        font-size: 14px;
      }
      a{
        margin-left: 0;
      }
    }
  }
}